import { INotifier } from "./Interfice";

import { SMSDecorator } from "./Decorator/SMSDecorator";
import { WeChatDecorator } from "./Decorator/WeChatDecorator";

@SMSDecorator("sms")
@WeChatDecorator('weChat')
export class Notifier implements INotifier {
    private emails:string[] = []
    constructor(emails:string[]){
        this.emails = emails
    }


    send(message: string): void {
        console.log(`base notifier send ${message} ${this.emails}`)
    }
} 